<?php
/**
 * Account_Controller_Admin
 *  
 * Controller for actions (in admin area) of admin module
 *
 * @version 2012-10-10
 * @package account
 * @subpackage controller
 * @category Account_Controller_Admin
 */
 
 class Home_Controller_Visitor extends Controller
{

	/** 
	* Index
	* Default function that will be used upon module start-up.
    *
    * @version 2012-10-10
    * @param Request $req
    * @return view
    * @access public
    */
    public function processIndex($req)
    {
		return $this->processHome($req);
    }
	
	
   /**
    * Login
    * This function shows admin login form.
	* This function checks whether the "Remember Login" checkbox is checked. If true, login email will be inserted from cookies.
	* 
    * @param Request $req
    * @return View (login page)
    * @access public
    */
    public function processHome($req)
    {
		$view = $this->getView("home");
		$arr = array('Pety','Vasy','Pavel');
		
		$view->setVar("array",$arr);
		
		
		return $view;
    }
}